/**
 * @author monirul
 */

var GameUserModel =  new Class.create({
	
	initialize: function(){
		this._name = "";
		this._state = "";
		this._current_room = "";
		this._blood = "";
		this._role = "";
	},
	
	init:function(o){
		if(o['user'] != null){
			this._roomList = o['roomList'];
		}
		this.roomListUpdated = new Event(this);
	},
	
	updateRoomList: function(roomList) {
		this._roomList = roomList;
		this.roomListUpdated.notify({'roomList': roomList});
	},
	
	getRoomList:function(){
		return this._roomList;
	}
	
});
